ss = 0
'''
实战四：提取文本中所有图片的链接地址
要求：从给定的文本中使用正则表达式提取出所有的图片链接地址


'''

s = "$data['banner'][] = ['linkUrl' => 'https://jyshopmoall.oss-cn-shanghai.aliyuncs.com/202401023141634k3FxC2d8NW.jpg', 'id' => 101472]; //816 101503 $data['banner'][] = ['linkUrl' => 'https://jyshopmoall.oss-cn-shanghai.aliyuncs.com/202401023141640mpXn3NzDH5.jpg', 'id' => 101503]; //里斯本丸沉没 $data['banner'][] = ['linkUrl' => 'https://jyshopmoall.oss-cn-shanghai.aliyuncs.com/202409241711584cCJ3D5CQW.jpg', 'id' => 101417]; //变形金刚 $data['banner'][] = ['linkUrl' => 'https://jyshopmoall.oss-cn-shanghai.aliyuncs.com/20240924171158Pef2ThWypZ.jpg', 'id' => 101452]; //荒野机器人 $data['banner'][] = ['linkUrl' => 'https://jyshopmoall.oss-cn-shanghai.aliyuncs.com/20240924171158AsPwH2KrdB.jpg', 'id' => 101430]"
import re

pattern = "https.*?\.jpg"
match = re.findall(pattern, s)
print(match)
